The endosteum is the layer of bone which lines the inner (marrow) cavity within the long bones which houses the bone |marrow|. It is distinguished from the |periosteum|, which is the external membrane which covers the surface of the |compact bone| tissue.